<div class="layuimini-main">

    <div class="layui-form layuimini-form" lay-filter="updateSubmit">
        <input type="hidden" name="id">
        <input type="hidden" name="personnelId">
        <div class="layui-form-item">
            <label class="layui-form-label required">维修人员</label>
            <div class="layui-input-block">
                <input type="number" name="price" lay-verify="required" lay-reqtext="价格不能为空"
                           placeholder="请输入价格" value="" class="layui-input" />
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">维修费用详情</label>
            <div class="layui-input-block">
                <input type="text" name="priceDetail" lay-verify="required" lay-reqtext="费用详情不能为空"
                       placeholder="请输入费用详情" value="" class="layui-input" />
            </div>
        </div>




        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="updateSubmit">确认修改</button>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['form', 'table','laydate'], function () {
        var form = layui.form,
            layer = layui.layer,
            table = layui.table,
            laydate=layui.laydate,
            $ = layui.$;


        form.render();





        // 当前弹出层，防止ID被覆盖
        var parentIndex = layer.index;

        //监听提交
        form.on('submit(updateSubmit)', function (data) {
            //获取表单中的数据信息
            var datas=data.field;
            console.log(datas)
            addOrUpdateSubmit($,"repair/addOrEditPrice",datas);
            return false;
        });

    });
</script>